package edu.ynu.se.xiecheng.achitectureclass.dao;

import edu.ynu.se.xiecheng.achitectureclass.entity.Greenhouse;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface GreenhouseDao extends JpaRepository<Greenhouse, Long> {
    List<Greenhouse> findAll();
//    Greenhouse findTopByIsDeletedOrderByCreateTimeDesc(int isDeleted);
    List<Greenhouse> findByCreateTimeAfter(java.util.Date time);
}
